home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Night Owl 6
/
Night Owl's Shareware - PDSI-006 - Night Owl Corp (1990).iso
/
027a
/
seekfi.zip
/
SEEKTEST.PRG
< prev
Wrap
Text File
|
1991-07-11
|
674b
|
34 lines
/* #include "seekfix.ch" */
procedure Main
field Name
set deleted on
if !file("Test.dbf")
dbcreate("Test",{{"Name","C",10,0}})
use Test new
append blank
index on Name to Test
close Test
use Test index Test shared
? &(indexkey())
seek "CRAIG"
do while !found() .and. (nextkey() == 0)
? "Not there yet..."
seek "CRAIG"
enddo
? iif(nextkey()==0,"Found it...","Aborted...")
inkey(3)
CLOSE Test
delete file test.dbf
delete file test.ntx
else
use Test index Test shared
if rlock()
Test->Name := "CRAIG"
else
? "Unable to lock..."
endif
close Test
endif
return